package decorator.b;

import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;

public class UppercaseInputStream extends FilterInputStream {

	protected UppercaseInputStream(InputStream in) {
		super(in);
	}

	@Override
	public int read() throws IOException {
		
		int data = super.read();
		
		if (data != -1) {
			data = Character.toUpperCase(data);
		}
		
		return data;
	}

}
